package com.example.auth.config.configuration;

import com.example.auth.handler.GlobalExceptionHandler;
import com.example.auth.utils.JwtHelper;
import com.example.auth.utils.JwtUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by wangtao on 2018/3/3.
 */
@Configuration
public class AuthConfiguration {
    @Bean
    public GlobalExceptionHandler getGlobalExceptionHandler() {
        return new GlobalExceptionHandler();
    }

    @Bean
    public JwtHelper getJwtHelper(){
        return new JwtHelper();
    }

    @Bean
    public JwtUtil getJwtUtil(){
        return new JwtUtil();
    }
}
